package demo.generator;

import com.baomidou.mybatisplus.generator.config.IDbQuery;
import com.baomidou.mybatisplus.generator.config.IKeyWordsHandler;
import com.baomidou.mybatisplus.generator.config.ITypeConvert;
import com.baomidou.mybatisplus.generator.config.converts.PostgreSqlTypeConvert;
import com.baomidou.mybatisplus.generator.config.querys.PostgreSqlQuery;
import com.baomidou.mybatisplus.generator.keywords.PostgreSqlKeyWordsHandler;

public class PostgreSqlMpGenerator extends AbstractMpGenerator {

	@Override
	public IDbQuery getDbQuery() {
		return new PostgreSqlQuery();
	}

	@Override
	public ITypeConvert getTypeConvert() {
		return new PostgreSqlTypeConvert();
	}

	@Override
	public IKeyWordsHandler getKeyWordsHandler() {
		return new PostgreSqlKeyWordsHandler();
	}

	@Override
	public String getTablesSql(String tablesSqlFormat, String schema) {
		return String.format(tablesSqlFormat, schema);
	}
}
